class ChartController < ApplicationController
  helper Ziya::Helper
  def load_chart
    chart = Ziya::Charts::PieThreed.new
    chart.add(:axis_category_text, ["2006", "2007", "2008"])
    chart.add(:series, "Region I", [200,100,50])
    respond_to do |fmt|
      fmt.xml {render :xml => chart.to_xml}
    end
  end
end
